package bit.pack;

public class Bird extends Animal{
    public int age;
    public String name;

    public Bird(int age, String name) {
        super(age, name);
        this.age = age;
        this.name = name;
    }

    public void eat(){
        System.out.println(this.name+"在吃鸟粮");
    }

    @Override
    public String toString() {
        return "Bird{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
